#include <iostream>
#include <string>
#include <iomanip>
int main()
{
	int sum = 0;
	std::string s1;
	std::cin >> s1;
	std::string::iterator iter = s1.begin();
	for (; iter != s1.end(); iter++)
	{
		sum += std::atoi(std::string(1, *iter).c_str());
	}
	std::cout << "整数" << s1 << "的各位数字之和为：" 
		<< std::setw(8) << sum;
}